package br.com.calculadora.activity;

import android.app.Activity;
import android.widget.Button;
import android.widget.EditText;
import android.widget.LinearLayout;
import android.widget.ListView;
import android.widget.Spinner;
import android.widget.TextView;

public class BaseActivity extends Activity {

	protected final Button findButton(int id) {
		return (Button) findViewById(id);
	}

	protected final TextView findText(int id) {
		return (TextView) findViewById(id);
	}
	
	protected final LinearLayout findLinear(int id) {
		return (LinearLayout) findViewById(id);
	}
	
	protected final EditText findEditText(int id) {
		return (EditText) findViewById(id);
	}
	
	protected final ListView findListView(int id) {
		return (ListView) findViewById(id);
	}
	
	protected final Spinner findSpinner(int id) {
		return (Spinner) findViewById(id);
	}
}
